package com.yangming.springboot.vo;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;

public class User {

    private Integer id;
    private String userName;
    private String userPwd;
    private String email;
    private String phone;
    private Integer isValid;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createDate;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateDate;

     private String roleId;

    public String getRoleId() {
        return roleId;
    }

    public void setRoleId(String roleId) {
        this.roleId = roleId;
    }

    
    public Date getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }



    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public Integer getIsValid() {
        return isValid;
    }

    public void setIsValid(Integer isValid) {
        this.isValid = isValid;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public Integer getId(){
        return this.id;
    }

    public String getUserName(){
        return this.userName;
    }

    public String getUserPwd(){
        return this.userPwd;
    }

    public void setId(Integer id){
        this.id = id;
    }

    public void setName(String name){
        this.userName = name;
    }

    public void setPwd(String pwd){
        this.userPwd = pwd;
    }

    @Override
    public String toString(){
        return "User{" +
                "id=" + id +
                ", userName=" + userName + '\'' +
                ", userPwd=" + userPwd + '\'' +
                "}";
    }
}
